﻿@model Abhimanu.Mobile.Models.ActivityModel
@{
    ViewBag.Title = "Student Home";
    Layout = "~/Views/Shared/M/_StudentLayout.cshtml";
}
@using (Html.BeginForm())
{
    <ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="a">
        <li data-role="list-divider">Say what's on your mind...</li>
        <li style="font-size: 11px; color: Red;">@Html.ValidationSummary(true)</li>
        <li>
            @Html.EditorFor(model => model.SaySomething)
            <input type="submit" value="Say..." data-theme="a" data-form="ui-btn-up-a" />
        </li>
    </ul>

    
    <ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="a">
        <li data-role="list-divider">Activity Stream</li>
        @foreach (var item in Model.Activities)
        {
            <li>
                
                <a  style="text-align: left; font-size: 14px;" href="@Url.Action("ActivityComment", "Student", new { activityId = item.ActivityID })">
                @Html.DisplayFor(modelItem => item.ActText)<br />
                    <span class="actitem">Posted @Html.DisplayFor(modelItem => item.PostTime) ago by <strong>@Html.DisplayFor(modelItem => item.PostBy)</strong>
                        &nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;
                        @Html.DisplayFor(modelItem => item.CommentCount) comments</span></a>
            </li>
        }
    </ul>
}
@section scripts
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
